<%@ page import="fleet_management.VehicleOnDuty"%>



<div
	class="fieldcontain ${hasErrors(bean: vehicleOnDutyInstance, field: 'vehicleNumber', 'error')} required">
	<label for="vehicleNumber"> <g:message
			code="vehicleOnDuty.vehicleNumber.label" default="Vehicle Number" />
		<span class="required-indicator">*</span>
	</label>
	<g:if test="${vehicleOnDutyInstance?.vehicleNumber}">
		<g:textField name="vehicleNumber"
			value="${vehicleOnDutyInstance?.vehicleNumber}" disabled="disabled" />
	</g:if>
	<g:select name="vehicleNumber" from="${vehicleList}"
		value="${vehicleOnDutyInstance?.vehicleNumber}"
		noSelection="['':'Select vehicle number']" />
</div>



<div
	class="fieldcontain ${hasErrors(bean: vehicleOnDutyInstance, field: 'kmReadingInitial', 'error')} ">
	<label for="kmReadingInitial"> <g:message
			code="vehicleOnDuty.kmReadingInitial.label"
			default="Km Reading Initial" />

	</label>
	<g:field type="number" name="kmReadingInitial"
		value="${fieldValue(bean: vehicleOnDutyInstance, field: 'kmReadingInitial')}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: vehicleOnDutyInstance, field: 'kmReadingFinish', 'error')} ">
	<label for="kmReadingFinish"> <g:message
			code="vehicleOnDuty.kmReadingFinish.label"
			default="Km Reading Finish" />

	</label>
	<g:field type="number" name="kmReadingFinish"
		value="${fieldValue(bean: vehicleOnDutyInstance, field: 'kmReadingFinish')}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: vehicleOnDutyInstance, field: 'typeOfUse', 'error')} ">
	<label for="typeOfUse"> <g:message
			code="vehicleOnDuty.typeOfUse.label" default="Type Of Use" />

	</label>
	<g:textField name="typeOfUse"
		value="${vehicleOnDutyInstance?.typeOfUse}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: vehicleOnDutyInstance, field: 'totalPrivateUseKm', 'error')} ">
	<label for="totalPrivateUseKm"> <g:message
			code="vehicleOnDuty.totalPrivateUseKm.label"
			default="Total Private Use Km" />

	</label>
	<g:field type="number" name="totalPrivateUseKm"
		value="${fieldValue(bean: vehicleOnDutyInstance, field: 'totalPrivateUseKm')}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: vehicleOnDutyInstance, field: 'rateOfPrivateUseKm', 'error')} ">
	<label for="rateOfPrivateUseKm"> <g:message
			code="vehicleOnDuty.rateOfPrivateUseKm.label"
			default="Rate Of Private Use Km" />

	</label>
	<g:field type="number" name="rateOfPrivateUseKm"
		value="${fieldValue(bean: vehicleOnDutyInstance, field: 'rateOfPrivateUseKm')}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: vehicleOnDutyInstance, field: 'totalIncomeFromPrivateUse', 'error')} ">
	<label for="totalIncomeFromPrivateUse"> <g:message
			code="vehicleOnDuty.totalIncomeFromPrivateUse.label"
			default="Total Income From Private Use" />

	</label>
	<g:field type="number" name="totalIncomeFromPrivateUse"
		value="${fieldValue(bean: vehicleOnDutyInstance, field: 'totalIncomeFromPrivateUse')}" />
</div>

